package com.ruoyi.web.controller.video.controller;

import com.ruoyi.system.service.impl.ResultNotifyReqImpl;
import com.ruoyi.system.service.impl.SeriesInfoServiceImpl;
import org.apache.cxf.Bus;
import org.apache.cxf.bus.spring.SpringBus;
import org.apache.cxf.jaxws.EndpointImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.xml.ws.Endpoint;

/**
 * @Author hongwei
 * @Date 2021/3/22 9:57
 */
@Configuration
public class CxfConfig {


    @Bean(name = Bus.DEFAULT_BUS_ID)
    public SpringBus springBus() {
        return new SpringBus();
    }

    @Bean
    public Endpoint endpoint() {
        EndpointImpl endpoint = new EndpointImpl(springBus(),new ResultNotifyReqImpl());
        endpoint.publish("/ResultNotifyReq");
        return endpoint;
    }

}

